define("text", (require, exports, module) => {
  exports.text = (dom) => {
    class ESText extends dom.customElement {
      constructor() {
        super();
      }
      connectedCallback() {
        this.bindDefault();
        const template = document.createElement("template");
        template.innerHTML = `<slot></slot>`;
        const templateContent = template.content;
        const span = document.createElement("span");
        span.setAttribute("class", "es_text");
        this._style &&
          (this.removeAttribute("style"), (span.style.cssText = this._style));
        span.appendChild(templateContent.cloneNode(true));
        const text = document.createTextNode(this.text);
        span.appendChild(text);
        const shadowRoot = this.createShadowRoot();
        shadowRoot.append(span);
      }
    }
    dom.component("es-text", ESText);
  };
});
